Make the usage of newlines in Cargo.toml consistent
authorIvan Ukhov <ivan.ukhov@gmail.com>
Wed, 18 Mar 2015 08:12:06 +0000 (09:12 +0100)
committerIvan Ukhov <ivan.ukhov@gmail.com>
Wed, 18 Mar 2015 08:12:06 +0000 (09:12 +0100)
src/cargo/ops/cargo_new.rs
src/doc/build-script.md
src/doc/config.md
src/doc/guide.md
src/doc/index.md
src/doc/manifest.md

index efb7d99e49a44700bac87ea22fb53ae716311903..4613e1d544d15fb30a57a1480693ab51c2f5abeb 100644 (file)
@@ -113,7 +113,6 @@ fn mk(config: &Config, path: &Path, name: &str,
 
     try!(file(&path.join("Cargo.toml"), format!(
 r#"[package]
-
 name = "{}"
 version = "0.0.1"
 authors = ["{}"]
index 8ee6e07d5743ce3c7b48c81132f5d3c6696f313b..61c4840789fb7347069352d54e26bfcd9bacb623 100644 (file)
@@ -204,7 +204,6 @@ Here we can see that we have a `build.rs` build script and our binary in
 # Cargo.toml
 
 [package]
-
 name = "hello-from-generated-code"
 version = "0.0.1"
 authors = ["you@example.com"]
@@ -293,7 +292,6 @@ Pretty similar to before! Next, the manifest:
 # Cargo.toml
 
 [package]
-
 name = "hello-world-from-c"
 version = "0.0.1"
 authors = [ "you@example.com" ]
index 8a2bf0b7bf8137206d21c8902bbcdf10de6d38b7..a6aaab69e99a8ebbc6242ec5b70a5dbcc634ce07 100644 (file)
@@ -54,7 +54,6 @@ vcs = "none"
 # literal string "$triple", and it will apply whenever that target triple is
 # being compiled to.
 [target]
-
 # For cargo builds which do not mention --target, these are the ar/linker which
 # are passed to rustc to use (via `-C ar=` and `-C linker=`). By default these
 # flags are not passed to the compiler.
@@ -67,7 +66,6 @@ linker = ".."
 ar = ".."
 linker = ".."
 
-
 # Configuration keys related to the registry
 [registry]
 index = "..."   # URL of the registry index (defaults to the central repository)
index 18028b175ddbf17774ccc244694f6f4abda24564..b789a922bf9542ab0bdb6d08191c2e655ece1c4a 100644 (file)
@@ -54,7 +54,6 @@ we need to get started. First, let's check out `Cargo.toml`:
 
 ```toml
 [package]
-
 name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
@@ -139,13 +138,11 @@ To depend on a library, add it to your `Cargo.toml`.
 
 ```toml
 [package]
-
 name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
-
 git = "https://github.com/bjz/color-rs.git"
 ```
 
@@ -232,13 +229,11 @@ on another project:
 
 ```toml
 [package]
-
 name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
-
 git = "https://github.com/bjz/color-rs.git"
 ```
 
@@ -257,7 +252,6 @@ We could fix this problem by putting a `rev` line in our `Cargo.toml`:
 
 ```toml
 [dependencies.color]
-
 git = "https://github.com/bjz/color-rs.git"
 rev = "bf739419e2d31050615c1ba1a395b474269a4"
 ```
@@ -272,13 +266,11 @@ manifest like this:
 
 ```toml
 [package]
-
 name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
-
 git = "https://github.com/bjz/color-rs.git"
 ```
 
@@ -327,13 +319,11 @@ patch. Here's what `conduit-static`'s `Cargo.toml` looks like:
 
 ```toml
 [package]
-
 name = "conduit-static"
 version = "0.0.1"
 authors = ["Yehuda Katz <wycats@example.com>"]
 
 [dependencies.conduit]
-
 git = "https://github.com/conduit-rust/conduit.git"
 ```
 
index 91bdf1e799c1d15b71a4b964ae29b776e792100f..a7ab9e88e5a5fe1093fda3f43fa79df59f304429 100644 (file)
@@ -45,7 +45,6 @@ This is all we need to get started. First, let's check out `Cargo.toml`:
 
 ```toml
 [package]
-
 name = "hello_world"
 version = "0.0.1"
 authors = ["Your Name <you@example.com>"]
index 025a8e2cbd6b0ffefb51ab7973555b77f92417e3..a58757c7a31a62e78f5a8c654ab500ba726fbb42 100644 (file)
@@ -211,7 +211,6 @@ features. The format for specifying features is:
 name = "awesome"
 
 [features]
-
 # The "default" set of optional packages. Most people will
 # want to use these packages, but they are strictly optional.
 # Note that `session` is not a package but rather another
@@ -230,7 +229,6 @@ secure-password = ["bcrypt"]
 session = ["cookie/session"]
 
 [dependencies]
-
 # These packages are mandatory and form the core of this
 # package's distribution
 cookie = "1.2.0"
@@ -400,7 +398,6 @@ values listed are the defaults for that option unless otherwise specified.
 # ...
 
 [lib]
-
 # The name of a target is the name of the library that will be generated. This
 # is defaulted to the name of the package or project.
 name = "foo"
@@ -441,7 +438,6 @@ library to build by explicitly listing the library in your `Cargo.toml`:
 # ...
 
 [lib]
-
 name = "..."
 # this could be "staticlib" as well
 crate-type = ["dylib"]